Marker Interface
The book has now been published and the content of this chapter has likely changed substanstially.Indicate something about a class by implementing an empty interface.
The Marker Interface pattern uses the fact that a class implements an interface to indicate semantic boolean attribute of the class. It works particularly well with utility classes that must determine something about objects without assuming they are an instance of any particular class
Copyright © 2003-2008 Gerard Meszaros all rights reserved